public class Test {
    public static void main(String[] args) {
        Student student1 = new Student("zhangsan",10);
        System.out.println("===============");
        Student student2 = new Student("wangwu",20);
        student1.show();
        System.out.println("===============");
        System.out.println(student1);

    }
    public static void main2(String[] args) {
        Student student1 = new Student("zhangsan",10);

        Student student2 = new Student("wangwu",20);

        Student student3 = new Student("wasa",30);
        //System.out.println(student1.classroom);
        System.out.println(Student.classroom);
    }
    public static void main1(String[] args) {
        Person person = new Person();
        //person.name = "张三";
        //person.name就会报错
        person.setName("张三");
        System.out.println(person.getName());
    }
}
